import time

def sumary(i):
    #累加
    if(i==1):
        return 1
    else:
        return i+sumary(i-1)

def factorial(i):
    #阶乘
    if i==1:
        return 1
    else:
        return i*factorial(i-1)

def jia(i):
    sum = 0
    for i in range(1,i+1):
        sum+=i
    return sum

if __name__ == '__main__':
    start_time = time.time()
    #print(sumary(200))
    print(jia(100000))
    end_time = time.time()
    print(start_time)
    print(end_time)
    print("运行时间为{:.7f}".format(end_time-start_time))
    #print(factorial(9))